package org.smi.jsonconvert.beiqi;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;

public class Model01 {


    @Data
    @AllArgsConstructor
    @ToString
    class PathAndType {
        private String path;
        private String type;
    }

    public static void main(String[] args) {
        Model01 model01 = new Model01();
        model01.exec();
    }

    private void exec() {
        PathAndType pathAndType = new PathAndType(null, null);
        m1("001", pathAndType);
        System.out.println(pathAndType);
        m2("ysm", pathAndType);

    }

    private void m1(String id, PathAndType pathAndType) {
        System.out.println(id);
        pathAndType.setPath("haha");
        pathAndType.setType("pdf");
    }

    private void m2(String name, PathAndType pathAndType) {

        System.out.println(name);
        System.out.println(pathAndType);
    }
}
